&lt;iframe src="https://docs.google.com/viewer?url=<%=officedoc.source_full_url(request.protocol)%>&embedded=true" width="100%" height="500" style="border: none;"&gt;&lt;/iframe&gt;